﻿<Window x:Class="SolarSystem.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:m3d="clr-namespace:System.Windows.Media.Media3D;assembly=PresentationCore"
        WindowState="Maximized"
        Title="Solar system" Height="400" Width="400"
        >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <StackPanel>
            <TextBlock>Earth orbit radius:</TextBlock>
            <Slider x:Name="earthRadius" Value="300" Maximum="500"/>
            
            <CheckBox x:Name="showMoon">Show moon</CheckBox>
            <TextBlock>Moon orbit radius</TextBlock>
            <Slider x:Name="moonRadius" Value="50" Maximum="200"/>
        </StackPanel>
        <Canvas MouseDown="Canvas_MouseDown" Background="Black" Grid.Column="1">
            <Ellipse x:Name="sun" Canvas.Left="350" Canvas.Top="350"
                Width="100" Height="100" Fill="Yellow"/>
            
            <Ellipse x:Name="earth" Canvas.Left="285" Canvas.Top="167"
                Width="40" Height="40" Fill="Blue"/>

            <Ellipse x:Name="moon" Canvas.Left="285" Canvas.Top="167"
                Width="15" Height="15" Fill="Gray"/>
        </Canvas>
    </Grid>
</Window>
